package spring.cloud.jacquesh.service.impl;

import org.springframework.stereotype.Service;
import spring.cloud.jacquesh.dao.PaymentDao;

import spring.cloud.jacquesh.service.PaymentService;
import spring.cloud.jacquesh.entitles.Payment;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl  implements PaymentService {
  @Resource
  private   PaymentDao paymentDao;
    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
